package com.seguros.servicios.service.impl;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.seguros.servicios.data.repository.ContactoRepository;
import com.seguros.servicios.domain.Contacto;
import com.seguros.servicios.service.ContactoService;

@Service
public class ContactoServiceImpl implements ContactoService {
	
	@Autowired
	private ContactoRepository contactoRepository;
	
	/**
	 * 
	 */
	public Collection<Contacto> findAll() {
		return (Collection<Contacto>) contactoRepository.findAll();
	}

	public Contacto guardar(Contacto contacto) {
		return contactoRepository.save(contacto);
	}

}
